<template>
  <el-container>
    <el-aside width="200px">
        小U商城
      <Left></Left>
    </el-aside>
    <el-container>
      <el-header>
          <Top></Top>
      </el-header>
      <el-main>
          <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Left from "../components/Left.vue";
import Top from "../components/Top.vue";

export default {
  components: {
    Left,
    Top
  },
};
</script>

<style>
.el-header {
  background-color: #fff;
  color: #333;
  text-align: right;
  line-height: 60px;
}

.el-aside {
  background-color: #FF5A3B;
  color: #fff;
  text-align: center;
  height: 100vh;
  line-height: 60px;
  font-size: 30px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>